package com.newdjk.okhttp.entity;

import java.io.Serializable;

/*
 *  @项目名：  RetrofitRxjavaDemo
 *  @包名：    com.example.huhai.retrofitrxjavademo.bean
 *  @文件名:   BaseEntity
 *  @创建者:   huhai
 *  @创建时间:  2018/11/1 10:53
 *  @描述：
 */
public class BaseEntity<T> implements Serializable {


    /**
     * code : 1001
     * msg : 账号或密码错误
     * data : {"deviceId":1001,"token":"账号或密码错误"}
     */

    private static int SUCCESS_CODE=0;//成功的code
    private int Code;
    private String Message;
        private T Data;

    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        Code = code;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }

    public T  getData() {
        return Data;
    }

    public void setData(T  data) {
        Data = data;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "Code=" + Code +
                ", Message='" + Message + '\'' +
                ", Data=" + Data +
                '}';
    }
}


